import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

export const routes: Routes = [
    { path: '', redirectTo: 'home', pathMatch: 'full' },
    { path: 'business', loadChildren: 'app/business/business.module#BusinessModule' },
    { path: 'fans', loadChildren: 'app/fans/fans.module#FansModule' },
    { path: 'vip', loadChildren: 'app/vip/vip.module#VipModule' },
    { path: 'photo', loadChildren: 'app/photo/photo.module#PhotoModule' },
    { path: 'statistics', loadChildren: 'app/statistics/statis.module#StatisModule' }
];

@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule]
})
export class AppRoutingModule { }
